package com.ruoyi.core.domain;

import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件管理对象 sys_file
 * 
 * @author lgc
 * @date 2020-12-01
 */
public class FileDo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 文件所属商户/公司的id */
    @Excel(name = "文件所属商户/公司的id")
    private Long userId;

    /** 文件key */
    @Excel(name = "文件key")
    private String fileKey;

    /** 上传文件原始名字 */
    @Excel(name = "上传文件原始名字")
    private String originName;

    /** 文件保存路径   当文件保存在服务器本地的时候用到 */
    @Excel(name = "文件保存路径   当文件保存在服务器本地的时候用到")
    private String path;

    /** URL地址 */
    @Excel(name = "URL地址")
    private String url;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String type;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 文件状态 0删除  1可用 */
    @Excel(name = "文件状态 0删除  1可用")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFileKey(String fileKey) 
    {
        this.fileKey = fileKey;
    }

    public String getFileKey() 
    {
        return fileKey;
    }
    public void setOriginName(String originName) 
    {
        this.originName = originName;
    }

    public String getOriginName() 
    {
        return originName;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("fileKey", getFileKey())
            .append("originName", getOriginName())
            .append("path", getPath())
            .append("url", getUrl())
            .append("type", getType())
            .append("createDate", getCreateDate())
            .append("status", getStatus())
            .toString();
    }
}
